import React from 'react';
import { Breadcrumb } from 'antd';
import styles from './index.less';
import PropTypes from 'prop-types';
/**
 *
 * @param {*} props
 */

const DrawerHeader = ({ menuList }) => {
  return (
    <div className={styles.header}>
      <Breadcrumb style={{ fontWeight: 'normal' }}>
        {menuList.map((item) => (
          <Breadcrumb.Item key={item}>{item}</Breadcrumb.Item>
        ))}
      </Breadcrumb>
    </div>
  );
};

DrawerHeader.propTypes = {
  menuList: PropTypes.array,
};
export default DrawerHeader;
